import Vue from "vue";
import Vant from "vant";
import "vant/lib/index.css";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/css/main.css";
import { serverUrl } from "./utils/tools";


Vue.use(Vant);

Vue.config.productionTip = false;

Vue.filter('dalImg',(v)=>{
  if (v) {
    if (v.startsWith("http")) {
      return v;
    }
    return serverUrl + v;
  } else {
    return "https://img2.baidu.com/it/u=35811137,2742809271&fm=26&fmt=auto&gp=0.jpg";
  }
})

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
